direct connect:

2A

02 - channel

01
3A - random

00
56 - length

-------

00
04 - family 0x0004

00
06 - command 0x0006 (= message from the client)

00
00 - flags

00
01
00
06 - requestid

---------------------

xx
xx
xx
xx
xx
xx
xx
00 - random cookie

00
02 - (02) = direct, (01) = standard message

07 - length of screen name
Screen Name

00
05 - TLV Type 5
00
32 - length 0x32

00
00

xx
xx
xx
xx
xx
xx
xx
00 - 8 byte cookie


16-byte capability string

00
0A - TLV type 0A
00
02 - Length 2
00
01 - Contents of TLV

00
0F
00
00 - empty TLV

00
03
00
04 - TLV HEADER FOR IP ADDRESS!!! (type 0x0003)

xx
xx
xx
xx - IP

00
05
00
02 - TLV HEADER FOR PORT!!! (type 0x0005)

xx
xx - Port number

